package com.diaosidadui;

import java.util.Scanner;

public class IsSymetry {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入:");
        String getString = sc.nextLine();
        System.out.println("您输入的是:"+getString);
        StringBuilder sb = new StringBuilder(getString);
        System.out.println("StringBuilder是"+sb);
        sb.reverse();
        System.out.println("StringBuilder是"+sb);
        System.out.println("getString是"+getString);
        String result = sb.toString();

        if(getString.equals(result)){
            System.out.println("这个字符串是对称的");
        }else{
            System.out.println("这个不是对称字符串");
        }




    }
}
